import com.qf.domain.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class testDi {
    @Test
    public void diTest(){
        ApplicationContext ac= new ClassPathXmlApplicationContext("applicationConfig.xml");


        User user = ac.getBean("user1",User.class);
        System.out.println(user);


    }
}
